package com.usian.controller;

import com.github.pagehelper.PageInfo;
import com.usian.config.FeignLog;
import com.usian.shop.entity.Log;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class ControllerLog {
    @Autowired
    private FeignLog feignLog;
    @RequestMapping("/findAll")
    public PageInfo findAll(@RequestParam("pageNum")Integer pageNum, @RequestParam("pageSize")Integer pageSize, @RequestBody Log log){
        return feignLog.findAll(pageNum,pageSize,log);
    }
}
